﻿<%@ Page Title="Página principal" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="TestWeb._Default" %>
<%@ Register assembly="Entersoft.Web" Namespace="Entersoft.Web.UI.WebControls" TagPrefix="ctrl" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div>
        <ctrl:GridView ID="GridView1" runat="server" AllowPaging="True" PageSize="18" AutoGenerateColumns="false"
            CellPadding="4" DataKeyNames="ProductID" DataSourceID="SqlDataSource1" GridLines="None" GridHeight="250" Width="100%" AllowSorting="true" GridTitle="Prueba" ShowGridTitle="true" ParentHeaderCssClass="header2" ButtonsHeaderCssClass="btnAddGrilla">
            <Columns>
                <asp:BoundField DataField="ProductID" HeaderText="ProductID" ReadOnly="True" SortExpression="ProductID"
                    HeaderStyle-Width="10%" ItemStyle-Width="10%" />
                <asp:BoundField DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName"
                    HeaderStyle-Width="40%" ItemStyle-Width="40%" />
                <asp:BoundField DataField="UnitPrice" HeaderText="UnitPrice" SortExpression="UnitPrice"
                    HeaderStyle-Width="10%" ItemStyle-Width="10%" />
                <asp:BoundField DataField="UnitsInStock" HeaderText="UnitsInStock" SortExpression="UnitsInStock"
                    HeaderStyle-Width="10%" ItemStyle-Width="10%" />
                <asp:BoundField DataField="CategoryName" HeaderText="CategoryName" SortExpression="CategoryName"
                    HeaderStyle-Width="30%" ItemStyle-Width="30%" />
            </Columns>
            <Buttons>
                <asp:Button ID="id1" runat="server" Text="Agregar" SkinID="btnAddGrilla" />
                <asp:Button ID="id2" runat="server" SkinID="btnAddGrilla" />
            </Buttons>
        </ctrl:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            SelectCommand="SELECT [ProductID], [ProductName], [UnitPrice], [UnitsInStock], [CategoryName] FROM [Alphabetical list of products]">
        </asp:SqlDataSource>
    </div>
</asp:Content>
